package com.springboot.manager.enums;

/**
 * @version v1.0
 * @ProjectName: hlk-microservice-ails
 * @ClassName: SSOCodeEnum
 * @Description: TODO(一句话描述该类的功能)
 * @Author: zhangzl
 * @Date: 2021-07-28 17:09
 */
public enum SSOCodeEnum {

    //登录成功
    LOGIN_SUCCESS(201, "LOGIN_SUCCESS"),
    //登录失败
    LOGIN_FAILURE(202, "LOGIN_FAILURE"),
    //未登录
    NO_LOGIN(203, "NO_LOGIN"),
    //请登录
    DO_LOGIN(204, "DO_LOGIN");

    private int code;
    private String msg;

    SSOCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public SSOCodeEnum setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public SSOCodeEnum setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
